home *** CD-ROM | disk | FTP | other *** search
/ Windows News 2010 Summer - Disc 1 / WN_Ete2010_CD1.iso / Onglet5 / Weezo / Weezo setup.exe / {code_appDir} / www / res / administration / config / main.php next >
PHP Script  |  2010-05-19  |  2KB  |  62 lines

  1. <?php
  2. /**
  3.  * Accounts remote configuration
  4.  *
  5.  * PHP version 5
  6.  *
  7.  * LICENSE: This source file is subject to version 3.0 of the PHP license
  8.  * that is available through the world-wide-web at the following URI:
  9.  * http://www.php.net/license/3_0.txt.  If you did not receive a copy of
  10.  * the PHP License and are unable to obtain it through the web, please
  11.  * send a note to license@php.net so we can mail you a copy immediately.
  12. *
  13.  * @category   NA
  14.  * @package    NA
  15.  * @author     Nicolas Bruley / Peer 2 World <contact@weezo.net>
  16.  * @copyright  2005-2009 Nicolas Bruley / Peer 2 World
  17.  * @license    http://www.php.net/license/3_0.txt  PHP License 3.0
  18.  * @version    CVS: $Id:$
  19.  * @link       http://www.weezo.net
  20.  * @since      File available since Release 2.0.0
  21.  */
  22.  
  23.  
  24. /**
  25.  * @desc Return link for config window
  26.  *
  27.  * @param unknown_type $scriptName
  28.  * @param unknown_type $caption
  29.  * @param unknown_type $smallIcon
  30.  * @param unknown_type $w
  31.  * @param unknown_type $h
  32.  * @return unknown
  33.  */
  34. function link($scriptName,$caption,$smallIcon,$w=320,$h=320){
  35.     return "cw=winMe.openWindow('".dirname($_SERVER['PHP_SELF']).'/'.$scriptName."',{".
  36.         "'id':'".$scriptName."',".
  37.         "'caption':'".addslashes($caption)."',".
  38.         "'w':".$w.",".
  39.         "'h':".$h.",".
  40.         "'icon':'".$smallIcon."'})";
  41. }
  42.  
  43. require(INCLUDE_DIR.'outputFunctions.php');
  44.  
  45. cfInsertHEAD();
  46.  
  47. $items=array();
  48.     // General parameters (windows, language)
  49.     $items[]=array('link'=>link('windows.php',cfCaption('desktop'),outIcon('win'),340,300),'image'=>outIcon('winM'),'caption'=>cfCaption('desktop'));
  50.     // Password
  51.     if(cfUGetVar('accountType')=='singleUser') $items[]=array('link'=>link('password.php',cfCaption('genPassword'),outIcon('lock'),320,170),'image'=>outIcon('pwdM'),'caption'=>cfCaption('genPassword'));
  52.     // Theme
  53.     if(cfGGetVar('allowUserThemeChange'))
  54.         $items[]=array('link'=>link('theme.php',cfCaption('genTheme'),outIcon('theme'),840,600),'image'=>outIcon('themeM'),'caption'=>cfCaption('genTheme'));
  55.     // Wallpaper
  56.     if(cfUGetVar('accountType')=='singleUser') $items[]=array('link'=>link('wallpaper.php',cfCaption('genWallpaper'),outIcon('wallpaper'),420,400),'image'=>outIcon('wallpaperM'),'caption'=>cfCaption('genWallpaper'));
  57.  
  58. echo '<div style="vertical-align:top">';
  59. echo outIconsList($items);
  60. echo outKeyHandler('D',array('27'=>'winMe.closeMe()'),true);
  61. ?>
  62. </div></body>